package com.demo.service;

import com.demo.bean.CustomerDTO;
import com.demo.provider.CustomerProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * MangerService
 *
 * @author liujin
 * @date 2020/11/4 16:58
 */
@Service
public class MangerService {

    @Resource
    private CustomerProvider customerProvider;


    public void hello(String msg) {
        CustomerDTO dto = new CustomerDTO();
        dto.setName(msg);
        dto.setAddress(LocalDateTime.now().toString());
        String customer = customerProvider.customer(dto);
        System.out.println(customer);
    }
}
